package com.xyht.sca_s.student_manage_system.modules.welcomeNewStudent.controller;


import com.xyht.sca_s.student_manage_system.common.commonReturn.ResponseResult;
import com.xyht.sca_s.student_manage_system.common.desEncodeAndDecode.annotation.SecretBody;
import com.xyht.sca_s.student_manage_system.modules.welcomeNewStudent.entity.req.SmsWnsStudentLoanProcessReq;
import com.xyht.sca_s.student_manage_system.modules.welcomeNewStudent.service.SmsWnsStudentLoanProcessService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * <p>
 * 助学贷款审批流程 前端控制器
 * </p>
 *
 * @author XYHT
 * @since 2024-03-20
 */
@RestController
@SecretBody
@RequestMapping("/welcomeNewStudent/studentLoanProcess")
public class SmsWnsStudentLoanProcessController {

    @Resource
    private SmsWnsStudentLoanProcessService smsWnsStudentLoanProcessService;

    @ApiOperation(value = "流程修改")
    @PostMapping("/update")
    public ResponseResult updateStudentLoanProcess(@RequestBody SmsWnsStudentLoanProcessReq req) {
        return smsWnsStudentLoanProcessService.updateStudentLoanProcess(req);
    }

    @ApiOperation(value = "流程列表")
    @GetMapping("/list")
    public ResponseResult getStudentLoanProcessList() {
        return smsWnsStudentLoanProcessService.getStudentLoanProcessList();
    }

}

